package card;

import java.util.List;
import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张宇田
 * Date: 2025-08-20
 * Time: 17:17
 */
public class Test {
    public static void main(String[] args) {
        Game game = new Game();
        List<Card> card = game.createCard();

        for (int i = 0 ; i < 52 ; i++){
            if((i+1)%14 == 0){
                System.out.println();
            }
            System.out.print(card.get(i));
        }
        //System.out.println(card);
        //System.out.println(13*4);
        System.out.println();
        System.out.println("===============洗牌后==================");
        game.shuffle(card);
        System.out.println(card);

        System.out.println("===============分牌====================");
        List<List<Card>> gamer = game.play(card);
        for (int i = 0 ; i<gamer.size();i++){
            System.out.println("第" + i + "个人的牌" +gamer.get(i));
        }
    }

    public static void main1(String[] args) {
        Random rd = new Random();
        System.out.println(rd.nextInt(6));
    }
}
